import request from '@/utils/request'

// 查询检验申请子表列表 (分页)
export function selectPageLabItem(query) {
    return request({
        url: '/business/labItem/selectPage',
        method: 'get',
        params: query
    })
}

// 查询检验申请子表列表 (不分页)
export function listLabItem(query) {
    return request({
        url: '/business/labItem/list',
        method: 'get',
        params: query
    })
}

// 查询检验申请子表详细
export function getLabItem(id) {
    return request({
        url: '/business/labItem/' + id,
        method: 'get'
    })
}

// 新增检验申请子表
export function addLabItem(data) {
    return request({
        url: '/business/labItem',
        method: 'post',
        data: data
    })
}

// 修改检验申请子表
export function updateLabItem(data) {
    return request({
        url: '/business/labItem',
        method: 'put',
        data: data
    })
}

// 删除检验申请子表
export function delLabItem(id) {
    return request({
        url: '/business/labItem/' + id,
        method: 'delete'
    })
}
